
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>游戏配置 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-toggle-chapters/toggle.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="本地数据.html" />
    
    
    <link rel="prev" href="入口.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    框架介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="入口.html">
            
                <a href="入口.html">
            
                    
                    入口
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.2.1" data-path="游戏配置.html">
            
                <a href="游戏配置.html">
            
                    
                    游戏配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="本地数据.html">
            
                <a href="本地数据.html">
            
                    
                    本地数据
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="大厅数据.html">
            
                <a href="大厅数据.html">
            
                    
                    大厅数据
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="声音控制.html">
            
                <a href="声音控制.html">
            
                    
                    声音控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="工具函数.html">
            
                <a href="工具函数.html">
            
                    
                    工具函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="网络模块.html">
            
                <a href="网络模块.html">
            
                    
                    网络模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="事件模块.html">
            
                <a href="事件模块.html">
            
                    
                    事件模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8" data-path="组件控制.html">
            
                <a href="组件控制.html">
            
                    
                    组件控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.9" data-path="窗口控制.html">
            
                <a href="窗口控制.html">
            
                    
                    窗口控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.10" data-path="网络连接.html">
            
                <a href="网络连接.html">
            
                    
                    网络连接
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.11" data-path="平台控制.html">
            
                <a href="平台控制.html">
            
                    
                    平台控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.12" data-path="json文件模块.html">
            
                <a href="json文件模块.html">
            
                    
                    json文件模块
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >游戏配置</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x6E38;&#x620F;&#x914D;&#x7F6E;">&#x6E38;&#x620F;&#x914D;&#x7F6E;</h1>
<ul>
<li>DEBUG:&#x7528;&#x6765;&#x63A7;&#x5236;&#x662F;&#x5426;&#x663E;&#x793A;&#x6253;&#x5370;&#x4FE1;&#x606F;console.log,&#x540C;&#x65F6;&#x7F51;&#x7EDC;&#x8BF7;&#x6C42;&#x4F1A;&#x6839;&#x636E;&#x8BBE;&#x7F6E;&#x8FDB;&#x5165;&#x4E0D;&#x540C;&#x7684;&#x670D;&#x52A1;&#x5668;&#x5730;&#x5740;</li>
<li>HTTP_TEST_URL:&#x670D;&#x52A1;&#x5668;&#x7684;&#x6D4B;&#x8BD5;&#x5730;&#x5740;</li>
<li>HTTP_ONLINE_URL:&#x670D;&#x52A1;&#x5668;&#x7684;&#x6B63;&#x5F0F;&#x5730;&#x5740;</li>
<li>Platform:&#x5E73;&#x53F0;(wx&#x3001;qq&#x7B49;)<pre><code>export default class game_config {
  public static DEBUG:boolean = true;        
  public static WX_APPID:string = &quot;wxd1cf8d4f5c0c03df&quot;;             //&#x5E73;&#x53F0;&#x7684;&#x8D26;&#x53F7;    
  public static GAME_NAME:string = &quot;snake&quot;;    //&#x6E38;&#x620F;&#x7684;&#x540D;&#x5B57;
  public static HTTP_TEST_URL:string = &quot;https://test.xxx.com/g2/&quot;;        //&#x6D4B;&#x8BD5;&#x670D;&#x52A1;&#x5668;&#x5730;&#x5740;
  public static HTTP_ONLINE_URL:string = &quot;https://online.xxx.com/g2/&quot;;      //&#x6B63;&#x5F0F;&#x670D;&#x52A1;&#x5668;&#x5730;&#x5740;    
  public static Platform:string = &quot;wx&quot;;           //&#x53D1;&#x5E03;&#x7684;&#x5E73;&#x53F0;&#x7684;&#x578B;&#x53F7;(wx:&#x5FAE;&#x4FE1;,qq:qq,)
  public static GAME_VERSION:string = &quot;1.0&quot;;      //&#x6E38;&#x620F;&#x7248;&#x672C;&#x53F7; 
}
</code></pre></li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="入口.html" class="navigation navigation-prev " aria-label="Previous page: 入口">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="本地数据.html" class="navigation navigation-next " aria-label="Next page: 本地数据">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"游戏配置","level":"1.2.1","depth":2,"next":{"title":"本地数据","level":"1.2.2","depth":2,"path":"框架入口/本地数据.md","ref":"./框架入口/本地数据.md","articles":[]},"previous":{"title":"入口","level":"1.2","depth":1,"path":"框架入口/入口.md","ref":"./框架入口/入口.md","articles":[{"title":"游戏配置","level":"1.2.1","depth":2,"path":"框架入口/游戏配置.md","ref":"./框架入口/游戏配置.md","articles":[]},{"title":"本地数据","level":"1.2.2","depth":2,"path":"框架入口/本地数据.md","ref":"./框架入口/本地数据.md","articles":[]},{"title":"大厅数据","level":"1.2.3","depth":2,"path":"框架入口/大厅数据.md","ref":"./框架入口/大厅数据.md","articles":[]},{"title":"声音控制","level":"1.2.4","depth":2,"path":"框架入口/声音控制.md","ref":"./框架入口/声音控制.md","articles":[]},{"title":"工具函数","level":"1.2.5","depth":2,"path":"框架入口/工具函数.md","ref":"./框架入口/工具函数.md","articles":[]},{"title":"网络模块","level":"1.2.6","depth":2,"path":"框架入口/网络模块.md","ref":"./框架入口/网络模块.md","articles":[]},{"title":"事件模块","level":"1.2.7","depth":2,"path":"框架入口/事件模块.md","ref":"./框架入口/事件模块.md","articles":[]},{"title":"组件控制","level":"1.2.8","depth":2,"path":"框架入口/组件控制.md","ref":"./框架入口/组件控制.md","articles":[]},{"title":"窗口控制","level":"1.2.9","depth":2,"path":"框架入口/窗口控制.md","ref":"./框架入口/窗口控制.md","articles":[]},{"title":"网络连接","level":"1.2.10","depth":2,"path":"框架入口/网络连接.md","ref":"./框架入口/网络连接.md","articles":[]},{"title":"平台控制","level":"1.2.11","depth":2,"path":"框架入口/平台控制.md","ref":"./框架入口/平台控制.md","articles":[]},{"title":"json文件模块","level":"1.2.12","depth":2,"path":"框架入口/json文件模块.md","ref":"./框架入口/json文件模块.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["toggle-chapters","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"toggle-chapters":{},"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"language":"zh-hans","gitbook":"*"},"file":{"path":"框架入口/游戏配置.md","mtime":"2019-04-26T03:05:13.279Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-04-27T16:05:58.239Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-toggle-chapters/toggle.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

